<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>SSH</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="SSH">

</head>

<body>
<h2>当前的登录用户为：<span style="color:yellow; font:bold">${loginuser.username} </span></h2>
  <p><h2>${seccessText}</h2></p>
  
    添加user，如果姓名没有冲突，那么就添加到数据库，如果注册账号冲突了就不能添加，返回失败页面
    <form action="adduser.action" method="post">
        填写账号:<input type="text" name="userid"><br />
         填写姓名:<input type="text" name="username"><br />
         填写密码:<input type="password" name="password"><br />
        <input type="submit" value="提交"> <input type="reset"value="重置">
    </form>
    
   	 根据用户账号查询，若不输入，则查询全部
    <form action="query.action" method="post">
        用户账号： <input type="text" name="queryText"/>
        <input type="submit" value="查询" />
    </form>

</body>
</html>